<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<div class="page">
    <div class="pageHeader">
        <form id="pagerForm" onsubmit="return navTabSearch(this);" action="${ctx}/food/food.action"
              method="post">
            <input type="hidden" name="page.pageNo" id="pageNum" value="${page.pageNo}"/>
            <input type="hidden" name="page.orderBy" id="orderField" value="${page.orderBy}"/>
            <input type="hidden" name="page.order" id="order" value="${page.order}"/>

            <div class="searchBar">


            </div>
        </form>
    </div>
    <div class="dashed-line"></div>
    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="toolBar-btn" href="${ctx}/food/food!input.action" target="dialog" width="600"
                       height="600" rel="w_food">添加</a></li>
                <li><a class="toolBar-btn2" href="${ctx}/food/food!delete.action?id={sid_user}"
                       target="ajaxTodo"
                       title="确定要删除吗？" warn="请选择一条记录">删除</a></li>
                <li><a class="toolBar-btn" href="${ctx}/food/food!input.action?id={sid_user}" target="dialog"
                       width="600" height="400"
                       warn="请选择一条记录" rel="w_food">查看/修改</a></li>
            </ul>
        </div>
        <div layouth="111">
            <table class="list" width="100%">
                <thead>
                <tr>
                    <th width="10%">菜品名称</th>
                    <th width="10%">图片</th>
                    <th width="10%">单价</th>
                    <th width="10%">打折价</th>
                    <th width="10%">口味</th>
                    <th width="10%">状态</th>
                </tr>
                </thead>
                <tbody>
                <s:iterator value="page.result">
                    <tr target="sid_user" rel="${id}">
                        <td>${foodName}&nbsp;</td>
                        <td><img src="${image}" height="50px" width="50px"></td>
                        <td>${price}&nbsp;</td>
                        <td>${disCountPrice}&nbsp;</td>
                        <td>${foodTastes}&nbsp;</td>
                        <td>
                            <c:if test="${type ==1}">上线</c:if>
                            <c:if test="${type ==2}">下线</c:if>

                        </td>

                    </tr>
                </s:iterator>
                </tbody>
            </table>

            <%--<div style=" float:left; margin:100px; overflow:auto; width:700px; height:200px;">--%>
            <%--<ul class="tree">--%>


            <%--<s:iterator value="foodTypePojos">--%>
            <%--<li><a>${name}</a>--%>
            <%--<ul>--%>
            <%--<s:iterator value="foodTypePojoList">--%>
            <%--<li>--%>
            <%--<a>${name}</a>--%>
            <%--<ul>--%>
            <%--<s:iterator value="foodTypePojoList">--%>
            <%--<li>--%>
            <%--<a>${name}</a>--%>
            <%--</li>--%>
            <%--</s:iterator>--%>

            <%--</ul>--%>

            <%--</li>--%>
            <%--</s:iterator>--%>
            <%--</ul>--%>
            <%--</li>--%>

            <%--</s:iterator>--%>


            <%--</ul>--%>
            <%--</div>--%>

        </div>

        <div class="panelBar">
            <div class="pages">
                <span>共${page.totalCount}条,共${page.totalPages}页</span>
            </div>

            <div class="pagination" targetType="navTab" totalCount="${page.totalCount}" numPerPage="${page.pageSize}"
                 pageNumShown="10" currentPage="${page.pageNo}"></div>

        </div>

    </div>
</div>